home *** CD-ROM | disk | FTP | other *** search
- Path: cpca3.uea.ac.uk!news
- From: John Swindells <jrs@sys.uea.ac.uk>
- Newsgroups: comp.lang.c++
- Subject: Re: using my own libraries (newbie urgent)
- Date: Mon, 12 Feb 1996 13:12:51 +0000
- Organization: University of East Anglia, Norwich, Norfolk, NR47TJ, UK
- Message-ID: <311F3CD3.41C6@sys.uea.ac.uk>
- References: <311ec2e6.4502345@nntp.ix.netcom.com>
- NNTP-Posting-Host: akira.sys.uea.ac.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)
-
- Andrew Chosak wrote:
- >
- > but can't run because it says undefined function "areacirc(double)"
- > I know all syntax is right, what's WRONG!!!
- >
- Have you managed to compile geometry.c? This should generate an object
- file (geometry.o or geometry.obj) that can be linked in with the object
- file of your main program file, to generate an executable. The normal
- command to compile is (in this case)
-
- cc -o program program.c geometry.c
-
- where the parameter after the '-o' is the name of the exectutable you
- want to produce. This compiles both source files (creating their
- equivalent object files); you could - to save recompilation time - put
- an object file on the command line if you know the object file is up to
- date, eg,
-
- cc -o program program.c geometry.o
-
- If you're working in an integrated environment (eg, Borland C++ for PC),
- it is simply a case of adding all the source files you want to the
- project.
-
- Hope this helps.
-
- John
- --
-
- Postgraduate researcher in the field of image processing.
- phone: external (01603) 592983
- uea internal x.2983
- e-mail: jrs@sys.uea.ac.uk
- www: http://www.sys.uea.ac.uk/~jrs
-